package com.lanling.educenter.client;

import com.lanling.educenter.other.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import javax.servlet.http.HttpServletRequest;

/**
 * @author 胡振华
 * @date 2021-05-09 21:13
 */
@FeignClient(name = "service-order",fallback = OrderDegradeFeignClient.class) //调用的服务名称
@Component
public interface OrderClient {

    @GetMapping("/eduorder/order/getOrdersByUserId")
    public R getOrdersByUserId(HttpServletRequest request);

}
